//---------------------------------------------------------------------------

#ifndef mainH
#define mainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "IdCmdTCPClient.hpp"
#include "IdCmdTCPServer.hpp"
#include "IdCustomTCPServer.hpp"
#include <IdBaseComponent.hpp>
#include <IdComponent.hpp>
#include <IdTCPClient.hpp>
#include <IdTCPConnection.hpp>
#include <IdTCPServer.hpp>
#include <Dialogs.hpp>
#include <IdAntiFreeze.hpp>
#include <IdAntiFreezeBase.hpp>
#include <ExtCtrls.hpp>
#include <Mask.hpp>
#include <Menus.hpp>
#include "IdContext.hpp"
bool ChkEdit(int Length,char Key);
String TestIP();
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
	TIdTCPClient *IdTCPClient1;
	TButton *Button1;
	TButton *Button2;
	TOpenDialog *OpenDialog1;
	TIdTCPServer *IdTCPServer1;
	TIdTCPServer *IdTCPServer2;
	TIdAntiFreeze *IdAntiFreeze1;
	TListBox *ListBox2;
	TTrayIcon *TrayIcon1;
	TMemo *Memo1;
	TMainMenu *MainMenu1;
	TMenuItem *N1;
	TMenuItem *N2;
	TMenuItem *N3;
	TMenuItem *N4;
	TMenuItem *N5;
	TMenuItem *N6;
	TMenuItem *N7;
	TMenuItem *N8;
	TMenuItem *CGCBuilder1;
	TSaveDialog *SaveDialog1;
	TMemo *Memo2;
	TListBox *ListBox1;
	TLabel *Label1;
	TButton *Button3;
	TButton *Button4;
	TIdTCPServer *IdTCPServer3;
   TButton *Button5;
   TButton *Button6;
	void __fastcall Button1Click(TObject *Sender);
	void __fastcall Button2Click(TObject *Sender);
	void __fastcall IdTCPServer1Execute(TIdContext *AContext);
	void __fastcall IdTCPServer2Execute(TIdContext *AContext);
	void __fastcall N3Click(TObject *Sender);
	void __fastcall N2Click(TObject *Sender);
	void __fastcall N6Click(TObject *Sender);
	void __fastcall N8Click(TObject *Sender);
	void __fastcall CGCBuilder1Click(TObject *Sender);
	void __fastcall TrayIcon1DblClick(TObject *Sender);
	void __fastcall FormCreate(TObject *Sender);
	void __fastcall N5Click(TObject *Sender);
	void __fastcall Button3Click(TObject *Sender);
	void __fastcall Button4Click(TObject *Sender);
	void __fastcall IdTCPServer3Execute(TIdContext *AContext);
   void __fastcall Button5Click(TObject *Sender);
   void __fastcall Button6Click(TObject *Sender);

private:	// User declarations
public:		bool hided;// User declarations
	__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
